<template>
  <div class="download-content active">
    <div class="download">
      <h3>{{$t('HomeDownloadText1')}}</h3>
      <h3></h3>
      <div class="tips">
        <div class="item">{{$t('HomeDownloadText2')}}</div>
        /
        <div class="item">{{$t('HomeDownloadText3')}}</div>
      </div>
      <div class="btn-content">
        <div class="item" @click="handleDownload">
          <img
             src=""
             alt="">
          <p>{{$t('HomeDownloadBtn1')}}</p>
        </div>
        <div  class="item" @click="handleDownload">
          <img
            src=""
            alt="">
          <p>{{$t('HomeDownloadBtn2')}}</p></div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { useRouter } from "vue-router";
const router = useRouter()
const handleDownload = () => {
  window.open('https://ml.thsjbvh.site/app.html', '_blank')
}
</script>
<style scoped lang="scss">
.download-content{
  background-image: url("@/assets/images/home-download-content-bg.png");
}
.download-content {
  width: 1200px;
  margin: 0 auto;
  margin-bottom: 60px;
  height: 297px;
  overflow: hidden;
  background-position: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: all .3s ease
}
.download-content.active {
  opacity: 1;
}
.download-content>div {
  display: flex;
  flex-direction: column;
  align-items: stretch
}

.download-content>div.download {
  width: 730px;
  font-weight: 700;
  margin-left: 10px
}

.download-content>div.download>h3 {
  font-size: 40px;
  letter-spacing: 2px;
  margin-left: 5px
}

.download-content>div.download>.tips {
  height: 35px;
  line-height: 35px;
  display: flex;
  font-size: 24px;
  margin-top: 10px
}

.download-content>div.download>.tips>.item {
  padding: 0 8px
}

.download-content>div.download>.btn-content {
  display: flex;
  margin-top: 15px;
  margin-left: 10px
}

.download-content>div.download>.btn-content>.item {
  height: 37px;
  line-height: 37px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #000;
  display: flex;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  will-change: filter;
  transition: filter .5s;
  cursor: pointer
}

.download-content>div.download>.btn-content>.item:first-child {
  margin-right: 20px
}

.download-content>div.download>.btn-content>.item:hover {
  filter: drop-shadow(0 0 4px #333)
}

.download-content>div.download>.btn-content>.item>img {
  margin-right: 10px
}

.download-content>div.download>.btn-content>.item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.download-content>div.code-content {
  align-items: center;
  margin-right: 50px;
  padding-top: 20px
}

.download-content>div.code-content>.content {
  width: 108px;
  height: 108px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center
}

.download-content>div.code-content>p {
  font-size: 14px;
  color: #fff;
  margin-top: 15px
}
</style>